//执行单表生成
function doAddXtGenerator(){
    if(getXtGeneratorGridListJSON() == false){
        return;
    }
    if(getXtGeneratorFormListJSON() == false){
        return;
    }
    //如果是一对多则获取子表JOSN
    if($('#is_one_to_many').val()==1){
        //验证子表JSON
        if(getXtGeneratorOneToManyFormListJSON() == false){
            window.parent.toastrBoot(4,"子表信息非法！请检查！");
            return;
        }
        // $('#xt_generator_batch_add_update').val(1);//需生成批量操作
    }
    $('#xtGeneratorSearchFileJSON').val(getXtGeneratorSearchFileJSON());
    $('#xtGeneratorGridListJSON').val(getXtGeneratorGridListJSON());
    $('#xtGeneratorTableColumnFormJson').val(getXtGeneratorFormListJSON());
    $('#xtGeneratorOneToManyFormListJSON').val(getXtGeneratorOneToManyFormListJSON());
    submitBFormCallFn('defaultForm','../xtGenerator/add',function(result){
        if(result.success){
            window.parent.toastrBoot(3,result.message);
            search('datatables')
            // $('#oneModal').modal('hide');//屏蔽关闭
        }else{
            window.parent.toastrBoot(4,result.message);
        }
    },null,"POST");}